package com.dst.smart.threadpool;


import com.dst.smart.webservice.AiuiDataServiceUtils;
import com.dst.smart.webservice.AiuiErrServiceUtils;

public class ThreadPoolTaskAiuiErr extends ThreadPoolTask {
	private String ErrID;
	private String ErrName;
	private String ErrData;
	private String CreateTime;
	private static final String TAG = "ThreadPoolTaskBitmap";

	private CallBack callBack;

	public ThreadPoolTaskAiuiErr(String ErrID, String ErrName,
								 String ErrData, String CreateTime) {
		super("","");
		this.ErrID=ErrID;
		this.ErrName=ErrName;
		this.ErrData=ErrData;
		this.CreateTime=CreateTime;
	}

	@Override
	public void run() {
		// Process.setThreadPriority(Process.THREAD_PRIORITY_LOWEST);
		try {
			String result = AiuiErrServiceUtils.instance.insertAiuiErr(getErrID(),getErrName(),getErrData(),getCreateTime());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

	public String getErrID() {
		return ErrID;
	}

	public void setErrID(String errID) {
		ErrID = errID;
	}

	public String getErrName() {
		return ErrName;
	}

	public void setErrName(String errName) {
		ErrName = errName;
	}

	public String getErrData() {
		return ErrData;
	}

	public void setErrData(String errData) {
		ErrData = errData;
	}

	public String getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(String createTime) {
		CreateTime = createTime;
	}


	public interface CallBack {
		public void onReady(String result);
	}


}
